package learning;

public class X {
	public static void main(String[] args) {
		MyThread m1=new MyThread();
		MyThread m2=new MyThread();
		m1.start();
		m2.start();
		p(m2.isAlive());
		System.out.println(Thread.MIN_PRIORITY+"-"+Thread.MAX_PRIORITY);
	}
	static void p(Object o){
		System.out.println(o);
	}
}
class MyThread extends Thread{
//	ThreadLocal<String> tl=new ThreadLocal<String>();
	@Override
	public void run() {
	
		for (int i = 0; i < 10; i++) {
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		
			System.out.println(Thread.currentThread().getName()+" is running");
		}
	}
}